<?php if(!isset($this->message)): ?>
<section class="content-wrapper">
	<div class="content-container container">
		<div class="main">
			<h1 class="page-title"><?php echo $this->translate('active account'); ?></h1>
			<div class="account-login">
				<div class="col-1 new-users">
					<div class="content">
						<h2><?php echo $this->translate('active account'); ?></h2>
						<form id="register" method="post">
                        <ul class="form-list">
                            <li class="fields">
        						<div class="input-box">
        							<label class="required" for="email"><?php echo $this->translate('email'); ?><em>*</em></label>
        							<input type="text" class="input-text validate-email required-entry" value="<?php if(isset($this->data['email'])) echo $this->data['email']; ?>" id="email" name="email" />
                                    <?php if(isset($this->messageError['email'])) echo $this->messageError['email']; ?>
        						</div>
        						<div class="clear"></div>
        					</li>
        					<li class="fields">
        						<div class="input-box">
        							<label class="required" for="password"><?php echo $this->translate('activation code'); ?><em>*</em></label>
        							<input type="text" class="input-text validate-email required-entry" value="" id="activation_code" name="activation_code" />
                                    <?php if(isset($this->messageError['activation_code'])) echo $this->messageError['activation_code']; ?>
        						</div>
        						<div class="clear"></div>
        					</li>
        				</ul>
                        <input type="hidden" name="type" value="register" />
                        </form>
					</div>
					<div class="buttons-set">
						<a class="colors-btn" id="register" title="Create an Account" ><span><span><?php echo $this->translate('active'); ?></span></span></a>
						<div class="clear"></div>
					</div>
				</div>
				<div class="col-2 registered-users">
					<?php echo $this->render('account/login_form.phtml'); ?>
            	</div>
				<div class="clear"></div>
			</div>
		</div>
		<div class="clearfix"></div>
	</div>
</section>
<?php else: ?>
<section class="content-wrapper">
	<div class="content-container container">
		<div class="col-1-layout">
            <span class="cart-no-item"><?php if(isset($this->message)) echo $this->translate($this->message); ?></span>
        </div>
    </div>
</section>
<?php endif; ?>
<script>
$(document).ready(function(){
    $(".banner-wrapper").remove();
    
    $("a#register").click(function(){
        $("form#register").submit();
    });
    
    $("a#login").click(function(){
        $("form#login").submit();
    });
});
</script>